<h1>Listing hyperlinks</h1>

<table>
  <tr>
    <th>Name</th>
    <th>Url</th>
    <th>Description</th>
    <th>Course</th>
    <th></th>
    <th></th>
    <th></th>
  </tr>

<% @hyperlinks.each do |hyperlink| %>
  <tr>
    <td><%= hyperlink.name %></td>
    <td><%= hyperlink.url %></td>
    <td><%= hyperlink.description %></td>
    <td><%= hyperlink.course.name %></td>
    <td><%= link_to 'Show', hyperlink %></td>
    <td><%= link_to 'Edit', edit_hyperlink_path(hyperlink) %></td>
    <td><%= link_to 'Destroy', hyperlink, :confirm => 'Are you sure?', :method => :delete %></td>
  </tr>
<% end %>
</table>

<br />

<%= link_to 'New Hyperlink', new_hyperlink_path %>
